package com.genexususa.eo.bing.data.results;

import com.genexususa.eo.bing.CampaignManagementServiceClasses.BatchError;
import com.genexususa.eo.bing.CampaignManagementServiceClasses.EditorialError;
import com.genexususa.eo.bing.data.GxItemException;

import javax.xml.bind.annotation.*;

@XmlTransient
public class GxGeneralResult extends GxGeneralResults {
    public GxGeneralResult() {
        super();
    }

    public void addGxExceptionError(GxItemException e, int index) {
        this.hasError = true;
        this.errorCollection.addGxExceptionError(e);
    }

    public void addBatchError(BatchError error) {
        this.hasError = true;
        this.errorCollection.addBatchError(error);
    }

    public void addEditorialError(EditorialError error) {
        this.hasError = true;
        this.errorCollection.addEditorialError(error);
    }
}
